home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
borland
/
bc20p2.zip
/
BC20P2.BAT
next >
Wrap
DOS Batch File
|
1991-10-29
|
3KB
|
97 lines
echo off
if not exist %1cs.lib goto NOSMALLLIB
echo Patching small library...
tlib %1cs.lib -*ctime -*delay
rename ctime.obj ctimes.old
rename delay.obj delays.old
tlib %1cs.lib +ctime.obs +slongtoa.obj +delays.obj
del slongtoa.obj
del delays.obj
del ctime.obs
echo =============================================================
if errorlevel 1 goto ERROR_NOTLIB
goto MEDIUM
:NOSMALLLIB
echo Cannot find CS.LIB to patch small library.
:MEDIUM
if not exist %1cm.lib goto NOMEDLIB
echo Patching medium library...
tlib %1cm.lib -*ctime -*delay
rename ctime.obj ctimem.old
rename delay.obj delaym.old
tlib %1cm.lib +ctime.obm +mlongtoa.obj +delaym.obj
del mlongtoa.obj
del delaym.obj
del ctime.obm
echo =============================================================
if errorlevel 1 goto ERROR_NOTLIB
goto COMPACT
:NOMEDLIB
echo Cannot find CM.LIB to patch medium library.
:COMPACT
if not exist %1cc.lib goto NOCOMPACTLIB
echo Patching compact library...
tlib %1cc.lib -*ctime -*delay
rename delay.obj delayc.old
rename ctime.obj ctimec.old
tlib %1cc.lib +ctime.obc +clongtoa.obj +delayc.obj
del clongtoa.obj
del delayc.obj
del ctime.obc
echo =============================================================
if errorlevel 1 goto ERROR_NOTLIB
goto LARGE
:NOCOMPACTLIB
echo Cannot find CC.LIB to patch compact library.
:LARGE
if not exist %1cl.lib goto NOLARGELIB
echo Patching large library...
tlib %1cl.lib -*ctime -*delay
rename delay.obj delayl.old
rename ctime.obj ctimel.old
tlib %1cl.lib +ctime.obl +llongtoa.obj +delayl.obj
del llongtoa.obj
del delayl.obj
del ctime.obl
echo =============================================================
if errorlevel 1 goto ERROR_NOTLIB
goto HUGE
:NOLARGELIB
echo Cannot find CL.LIB to patch large library.
:HUGE
if not exist %1ch.lib goto NOHUGELIB
echo Patching huge library...
tlib %1ch.lib -*ctime -*delay.obj
rename delay.obj delayh.old
rename ctime.obj ctimeh.old
tlib %1ch.lib +ctime.obh +hlongtoa.obj +delayh.obj
del hlongtoa.obj
del delayh.obj
del ctime.obh
echo =============================================================
if errorlevel 1 goto ERROR_NOTLIB
goto DONE
:NOHUGELIB
echo Cannot find CH.LIB to patch huge library.
goto DONE
:ERROR_NOOBJ
echo An patch object module is not in the current directory. Please use
echo unzip on BC20P2.ZIP and try to patch again.
goto DONE
:ERROR_NOTLIB
echo A problem was encountered executing TLIB. Either the Turbo Librarian
echo cannot be located along your DOS path, or an error occurred. Consult
echo your Borland C++ Users Guide for more information on why TLIB might not
echo be operating correctly.
:DONE
cls
echo Done.